# This is a sample Python script.

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
from fastapi import FastAPI
import uvicorn

from database import engine
import models

# models.Base.metadata.create_all(bind=engine)

app = FastAPI()


@app.get("/")
async def home():
    return {"username": "张三"}


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    uvicorn.run(app=app, host="127.0.0.1", port=8030)
